package org.example.completed.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.completed.domain.ActivityReservation;

/**
 * <p>
 * 活动预约表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2025-04-11
 */
@Mapper
public interface ActivityReservationMapper extends BaseMapper<ActivityReservation> {
    // 根据 activityId 和 userId 查询记录
    ActivityReservation selectByActivityIdAndUserId(@Param("activityId")String activityId,
                                                    @Param("userId")String userId);
}
